/* 表单容器样式 */
.form-box {
    width: 66.66%; /* 占据页面的三分之二 */
    margin: 20px auto; /* 水平居中 */
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 字段集样式 */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

/* 传说标题样式 */
legend {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 15px;
}

/* 标签样式 */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #666;
}

/* 输入框、文本区域和选择框样式 */
input[type="text"],
textarea,
select,
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input[type="text"]:focus,
textarea:focus,
select:focus,
input[type="file"]:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

/* 确保文本框和选择框高度一致 */
input[type="text"],
select {
    min-height: 40px;
}

/* 文本区域特殊处理，确保有足够的高度用于多行文本 */
textarea {
    min-height: 100px;
    resize: vertical;
}

/* 减少标签框高度 */
#id_label {
    min-height: 30px; /* 原来的高度为 100px，现在减少一半 */
}

/* 下拉选择框样式 */
select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 8px top 50%;
    background-size: 12px 12px;
}

/* 提交按钮样式 */
.submit-btn {
    background-color: #e74c3c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #c0392b;
}
/* 新增的成功提示页面样式 */
.success-message {
    text-align: center;
    padding: 2rem;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-bottom: 2rem;
    color: #155724;
}

.success-message h2 {
    color: #155724;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-message p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.success-actions {
    margin-top: 1.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 0 0.5rem;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #28a745;
    color: white;
}

.btn-primary:hover {
    background-color: #218838;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* 继续发布按钮样式 */
.success-actions .btn-continue {
    background-color: #28a745 !important; /* 绿色背景 */
    color: white !important; /* 白色文字 */
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.success-actions .btn-continue:hover {
    background-color: #218838 !important; /* 鼠标悬停时的更深绿色 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-box {
        margin: 10px;
        padding: 15px;
    }

    .success-message {
        padding: 1.5rem;
    }

    .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}